<div class="row">
    {% for test in tests %}
    <div class="row exercise-block">
        <div><a href="{{url('exercises/do/'~test.id)}}">Exercise {{test.id}}</a></div>
    </div>
    {% endfor %}
    <button data-toggle="modal" data-target="#createModal" class="btn black">Create Text</button>
</div>
<div class="modal fade" id="createModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" id="myModalLabel">Làm bài test mới</h4>
            </div>
            <div class="modal-body">
                <form action="{{url('exercises/create')}}" method="post">
                    <label>Part 1:</label>
                    <input type="number" class="form-control" name="part[1]" value="10"/>
                    <label>Part 2:</label>
                    <input type="number" class="form-control" name="part[2]" value="10"/>
                    <label>Part 3:</label>
                    3X<input type="number" class="form-control" name="part[3]" value="10"/>
                    <label>Part 4:</label>
                    3X<input type="number" class="form-control" name="part[4]" value="10"/>
                    <label>Part 5:</label>
                    <input type="number" class="form-control" name="part[5]" value="40"/>
                    <label>Part 6:</label>
                    3X<input type="number" class="form-control" name="part[6]" value="4"/>
                    <label>Part 7:</label>
                    <input type="number" class="form-control" name="part[7][1]" value="28"/>
                    5X<input type="number" class="form-control" name="part[7][2]" value="4"/>
                    <button class="btn black" type="reset">Mặc định</button>
                    <button class="btn black" type="submit">Tạo</button>
                </form>
            </div>
        </div>
    </div>
</div>